package com.yuneec.rcService;

import com.yuneec.droneservice.ConnectionListener;
import com.yuneec.droneservice.model.ControllerVersion;

import java.io.File;

public interface IRCOTA {
    void addConnectionListener(ConnectionListener connectionListener);

    void removeConnectionListener(ConnectionListener connectionListener);

    boolean isConnected();

    void getRCModel(RcCallBack<String> callback);

    void getRCVersion(RcCallBack<ControllerVersion> callback);

    void uploadUpgradeFile(File file, RcCallBack<Void> callback);

    void startUpgrade(RcCallBack<ControllerVersion> callback);
}
